/**
 * 
 */
package com.fastwire.alarm.common.view.controller;

import org.apache.commons.logging.LogFactory;
import org.zkoss.zk.ui.Component;
import org.zkoss.zk.ui.Page;
import org.zkoss.zk.ui.util.GenericForwardComposer;
import org.zkoss.zul.Window;

/**
 * @author sigit <br>
 * @version 1.0 <br>
 * Application : Alarm Reduction <br>
 * Copyright (c) fastwire-group 2011 <br>
 * <br>
 */
public class BaseController extends GenericForwardComposer {

	protected final org.apache.commons.logging.Log log = LogFactory.getLog(this.getClass());
	
	/**window */
	protected Window self;
	
	/** The ZK page */
	protected Page page;
	
	public void doAfterCompose(Component aWindow) throws Exception {
		aWindow.setAttribute("composer", this, false); // <== add this composer as a window variable, so data binder can find it
	    super.doAfterCompose(aWindow);
	}
}
